ECHO OFF
CLS

title "Compiling TypeScript"

ECHO Compiling
rem compila
FOR /R %%I IN (*.ts) DO (CALL GENJS "%%I" & IF NOT %ERRORLEVEL%==0 (GOTO EXIT))	

ECHO Compilation Finished
ECHO !-- END

:EXIT